
/* $Id: main.mm 50 2010-06-22 10:11:55Z qiaolun $ */

#import <Cocoa/Cocoa.h>


#include "scim.h"
#include "scim_phrase.h"
#include "scim_pinyin.h"
#include "scim_pinyin_phrase.h"
#include "scim_pinyin_global.h"
#include "scim_special_table.h"
#include "scim_native_lookup_table.h"
#include "scim_pinyin_smart_match.h"

#import "ScimPinyin.h"

int main(int argc, char *argv[])
{
    
    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
	
	NSLog(@"test_py run");
	
	ScimPinyin *pinyin = [[ScimPinyin alloc] init];
	[pinyin loadTable];

	NSString *chars = @"nimen";
	
	for(int i = 0; i < [chars length]; i++){
		[pinyin inputString:[NSString stringWithFormat:@"%c", [chars characterAtIndex:i]]];
		NSLog(@"candidates %@", [pinyin get_candidates]);
	}
	[pinyin lookup_select:0];
	
    [pool release];
    return 0;
}